import javax.json.bind.annotation.JsonbDateFormat;
import javax.json.bind.annotation.JsonbNumberFormat;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbTransient;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author Sai
 * Created by Sai on 2019-03-15.
 *
 *
 * @JsonbProperty - 用于指定自定义字段名称
 * @JsonbTransient - 当我们想要在反序列化/序列化期间忽略该字段时
 * @JsonbDateFormat - 当我们想要定义日期的显示格式时
 * @JsonbNumberFormat - 用于指定数值的显示格式
 * @JsonbNillable - 用于启用空值的序列化
 */
@SuppressWarnings("unused")
public class Use {

    // 为了使用jsonb,必须有一个空的默认构造方法
    public Use() {

    }

    public Use(int error, String message, String openid, String access_token) {
        this.error =error ;
        this.message = message;
        this.openid = openid;
        this.access_token = access_token;

    }

    private int id;

    // 工号
    @JsonbProperty("error")
    private int error;

    // 姓名
    @JsonbProperty("message")
    private String message;

    // 身份
    @JsonbProperty("openid")
    private String  openid;

    // 部门
    @JsonbProperty("access_token")
    private String access_token;





    public int geterror() {
        return error;
    }

    public void seterror(int error) {
        this.error = error;
    }

    public String getmessage() {
        return message;
    }

    public void setmessage(String message) {
        this.message = message;
    }

    public String getopenid() {
        return openid;
    }

    public void setopenid(String openid) {
        this.openid = openid;
    }

    public String getaccess_token() {
        return access_token;
    }

    public void setaccess_token(String access_token) {
        this.access_token =access_token;
    }


}